<script>
	export default {
		onLaunch: function() {
		},
		onShow: function() {
			
			console.log('B包 App onShow') 
			// #ifdef APP-PLUS
			this.checkArguments();
			plus.globalEvent.addEventListener('newintent', (e)=>{
				this.checkArguments();
			});
			// #endif
			
		},
		onHide: function() {
		},
		
		
		methods:{
			checkArguments() {  
				if (plus.runtime.launcher == 'scheme') {
					if(plus.runtime.arguments != ""){
						try {  
							var data = plus.runtime.arguments;
							var res= data.split('?');
							let url = `/pages/ThirdPartyAuthorization/ThirdPartyAuthorization?${res[1]}`;
							uni.navigateTo({
								url:url
							})
						} catch (e) {  
							console.log('失败');
						} 
					}
						 
				}  
			}
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
